refactor: newline-per-line progress output#33
Conversation
… (GIT-64) Simplifies progress handler to always write each update on its own line. Removes TTY detection, padEnd line clearing, and liberateWithProgress try/finally wrapper — none needed with newline output. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
📝 WalkthroughWalkthroughRemoved the liberateWithProgress wrapper and TTY in-place updates; commands now call liberateService.liberate directly with inline Changes
Sequence Diagram(s)(omitted) Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
No actionable comments were generated in the recent review. 🎉 Comment |
There was a problem hiding this comment.
Pull request overview
Refactors the CLI liberate progress output to always emit newline-delimited updates to stderr, removing TTY/in-place update logic so output is consistent across terminals, CI, and piped runs.
Changes:
- Simplifies
createStderrProgressHandlerto write one progress update per line (no\rin-place updates). - Removes the
liberateWithProgresswrapper and updatesinit/liberatecommands to pass the handler directly. - Drops TTY detection and line-padding/clearing logic.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
src/commands/progress.ts |
Simplifies stderr progress handling to always write newline-delimited updates and removes the wrapper helper. |
src/commands/liberate.ts |
Removes usage of liberateWithProgress and passes the stderr progress handler directly to the service. |
src/commands/init.ts |
Removes usage of liberateWithProgress and passes the stderr progress handler directly to the service. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 3 out of 3 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Summary
\rin-place replacementpadEndline clearing, andliberateWithProgresstry/finally wrapperFollow-up to #32 (GIT-64)
Test plan
npm run pre-commitpasses🤖 Generated with Claude Code
Summary by CodeRabbit
Refactor
User-facing changes